/**
 * 
 */
package org.wicket.jbpm;

import org.apache.wicket.Application;
import org.apache.wicket.Request;
import org.apache.wicket.Session;
import org.apache.wicket.protocol.http.WebSession;
import org.wicket.jbpm.model.User;

/**
 * @author Emmanuel Nollase - emanux
 * created: May 10, 2009 - 3:32:20 PM
 */
public class WicketJBPMSession extends WebSession {

	private User user;
	
	public WicketJBPMSession(Request request) {
		super(request);
	}
	
	public static WicketJBPMSession get() {
		return (WicketJBPMSession) Session.get();
	}

	public synchronized User getUser() {
		return user;
	}

	public synchronized void setUser(User user) {
		this.user = user;
	}

}
